project(redis_server)

set(CMAKE_CXX_STANDARD 20)
add_library(redis_server redis_server.h redis_server.cpp redis_connection.cpp redis_connection.h command_manager.cpp command_manager.h others.cpp others.h database.cpp database.h save_maneger.cpp save_maneger.h slave_manager.cpp slave_manager.h senti_manager.cpp senti_manager.h)

set(ASIO_INCLUDE ../../asio/include)
target_compile_options(redis_server PUBLIC -DASIO_STANDALONE -DTEST)
target_include_directories(redis_server PUBLIC ${ASIO_INCLUDE})
find_package(Threads REQUIRED)
target_link_libraries(redis_server Threads::Threads)